package com.springboot.java0317springboot.iocdemo;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author lenovo
 * @Description
 * @Date2025-3-17 22:31
 */

public class HomeTest {
    public static void main(String[] args) {
        // 硬编码方式创建对象
        Air air = new Aira();
        TV tv = new TCLTV();

        // 创建房子对象
        Home home = new Home(air, tv);

        // 调用开门方法
        home.openDoor();
    }
}
